﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;

namespace NSecureImageTest
{
    public static class TestHelper
    {
        public static string GetCurrentImagePath()
        {
            return Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).Replace(@"file:\", String.Empty);
        }

        public static string GetCurrentExecutionPath(string imageName)
        {
            return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).Replace(@"file:\", String.Empty), imageName);
        }
    }
}
